Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit p2p sync errors #2353

Merged
merged 23 commits into from
Nov 7, 2024
Merged

Audit p2p sync errors #2353

merged 23 commits into from
Nov 7, 2024

Conversation

CHr15F0x
Copy link
Member

@CHr15F0x CHr15F0x commented Nov 5, 2024

Fixes: #2302

Some ideas from the issue ⬆️ were not implemented or a more convenient solution was chosen (for example: log errors at source in checkpoint sync, keep variants small, allow for implicit conversion from anyhow::Error because only one variant uses it).

@CHr15F0x CHr15F0x force-pushed the chris/p2p-errors branch 2 times, most recently from fe3f4e4 to ef8ad34 Compare November 5, 2024 19:05
@CHr15F0x CHr15F0x changed the title Chris/p2p errors Audit p2p sync errors Nov 5, 2024
@CHr15F0x CHr15F0x marked this pull request as ready for review November 5, 2024 19:18
@CHr15F0x CHr15F0x requested a review from a team as a code owner November 5, 2024 19:18
Copy link
Contributor

@kkovaacs kkovaacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@vbar vbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another nit: the declaration of pathfinder_common::class_hash in state_updates.rs seems unused - not really part of error handling, but it is refactoring... :-)

Plus it needs to incorporate changes from #2349, naturally...

crates/p2p/src/client/peer_agnostic.rs Outdated Show resolved Hide resolved
crates/p2p/src/peer_data.rs Show resolved Hide resolved
@CHr15F0x CHr15F0x merged commit 39d2d55 into main Nov 7, 2024
7 checks passed
@CHr15F0x CHr15F0x deleted the chris/p2p-errors branch November 7, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Audit error types propagated from p2p client to checkpoint sync
3 participants